/**@file: App入口文件 */
import 'babel-polyfill';
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import VueCookies from 'vue-cookies';
import LoginSvg from '@/components/LoginSvg'
import LogoSvg from '@/components/LogoSvg'
import SelectTree from "@/components/SelectTree";
import {
	reqInstallCheck,
} from './api/index';
import '@/assets/css/reset.css';
import 'element-ui/lib/theme-chalk/index.css';
import {
	showLoaing,
	hideLoading,
	uploadParams,
	customMessage,
	createImgClose,
	isnumber
} from './util/utils';
import './assets/iconfont/iconfont.css';
import {
	province,
	citys
} from './util/province';
//excel表格
import JsonExcel from 'vue-json-excel'
import * as echarts from 'echarts';
import './permission.js';

Vue.component('LoginSvg', LoginSvg);
Vue.component('LogoSvg', LogoSvg);
Vue.component('SelectTree', SelectTree);
Vue.component('downloadExcel', JsonExcel)
Vue.use(ElementUI);
Vue.use(VueCookies);

Vue.prototype.$message = customMessage;
Vue.prototype.showLoaing = showLoaing;
Vue.prototype.hideLoading = hideLoading;
Vue.prototype.$echarts = echarts;
Vue.prototype.$province = province;
Vue.prototype.$city = citys;
Vue.prototype.$uploadParams = uploadParams;
Vue.prototype.$closeImg = createImgClose;
Vue.prototype.$isnumber = isnumber;
Vue.prototype.$bus = new Vue();

Vue.config.productionTip = false;

export default new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app');
